<?php
namespace app\admin\controller;
use think\Db;
class Common extends Base{
    public function welcome(){
    	$todaytime=strtotime(date("Y-m-d"),time());
    	$today=Db::name('users')->where('time','>',"{$todaytime}")->select();
    	$history=Db::name('users')->select();
        $this->assign('url',$_SERVER['HTTP_HOST']);
        $this->assign('today',count($today));
        $this->assign('history',count($history));
        return $this->fetch();
    }
}
